﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Net;
using System.Text.RegularExpressions;
using DailyComics.Common.Utilities;
using DailyComics.Common.Model.ImageProvideStrategies;
using DailyComics.Common.Model.CachingStrategies;
using DailyComics.Common.Properties;
using DailyComics.Common.Model.ImageProvideStrategyFactories;



namespace DailyComics.Common.Model.ImageProviderFactory
{
  public class ImageProvider : IImageProvider
  {
    protected IImageProviderStrategy providerStrategy;

    public ImageProvider (IImageProviderStrategyFactory factory)
	  {
      this.providerStrategy = factory.Create();
  	}

    public virtual byte[] GetImage(DateTime date)
    {
      return providerStrategy.GetImage(date);
    }
  }
}
